package top.hzy520.admin.user.service;

import org.springframework.web.multipart.MultipartFile;
import top.hzy520.admin.user.dto.UserUpdateParam;
import top.hzy520.admin.user.entity.User;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 10:37 2019/6/3
 */
public interface UserService {
    String checkEmailUnique(Integer userId, String email);

    String checkPhoneUnique(Integer userId, String mobile);

    String checkUsernameUnique(Integer userId, String username);

    int profileUpdate(UserUpdateParam userUpdateParam);

    User selectUserByUsername(String username);

    int profileResetPwd(UserUpdateParam userUpdateParam);

    int updateAvatar(Integer id, MultipartFile file);
}
